package view

import "time"

type XiaoqiangPaymentViewStruct struct {
	OrderId                                       int       `json:"order_id" gorm:"type:int(11); NOT NULL;"`
	OrderStaticParkCode                           string    `json:"order_static_park_code" gorm:"type:varchar(255); DEFAULT:''; COMMENT:'静态停车场编号'"`
	OrderParkCode                                 string    `json:"order_park_code" gorm:"type:varchar(20); COMMENT:'停车场编号'"`
	OrderCarNumber                                string    `json:"order_car_number" gorm:"type:varchar(20); COMMENT:'车牌号'"`
	OrderCarNoColor                               int       `json:"order_car_no_color" gorm:"type:tinyint(1); COMMENT:'车牌颜色 1-蓝牌 3-黄牌 6-绿牌 7-白牌 8-黑牌'"`
	OrderCarType                                  int       `json:"order_car_type" gorm:"type:tinyint(1); COMMENT:'车型 1: 小型车 2: 中型车 3: 大型车 4: 其 他'"`
	OrderOrderNo                                  string    `json:"order_order_no" gorm:"type:varchar(255); COMMENT:'系统单号'"`
	OrderStatus                                   int       `json:"order_status" gorm:"type:tinyint(1); COMMENT:'订单状态 0 预约中, 1在场地内  2已结束'"`
	OrderOrderType                                int       `json:"order_order_type" gorm:"type:tinyint(1);; COMMENT:'1:小强停车 2:泊安飞'"`
	OrderInTime                                   time.Time `json:"order_in_time" gorm:"type:datetime; COMMENT:'进场时间'"`
	OrderOutTime                                  time.Time `json:"order_out_time" gorm:"type:datetime; COMMENT:'出场时间'"`
	OrderCreatedAt                                time.Time `json:"order_created_at" gorm:"type:datetime"`
	OrderUpdatedAt                                time.Time `json:"order_updated_at" gorm:"type:datetime"`
	OrderOperateAdminId                           int       `json:"order_operate_admin_id" gorm:"type:int(11);; COMMENT:'人工操作id'"`
	OrderOperateTime                              int       `json:"order_operate_time" gorm:"type:int(11);; COMMENT:'人工操作时间'"`
	OrderXiaoqiangPaymentId                       int       `json:"order_xiaoqiang_payment_id" gorm:"type:int(11); NOT NULL;"`
	OrderXiaoqiangPaymentOrderNo                  string    `json:"order_xiaoqiang_payment_order_no" gorm:"type:varchar(255); COMMENT:'系统单号'"`
	OrderXiaoqiangPaymentXqOrderNo                int       `json:"order_xiaoqiang_payment_xq_order_no" gorm:"type:int(11); COMMENT:'小强单号'"`
	OrderXiaoqiangPaymentReservationEndTimeBefore time.Time `json:"order_xiaoqiang_payment_reservation_end_time_before" gorm:"type:datetime; COMMENT:'原预约时间'"`
	OrderXiaoqiangPaymentReservationEndTimeAfter  time.Time `json:"order_xiaoqiang_payment_reservation_end_time_after" gorm:"type:datetime; COMMENT:'修改后预约时间'"`
	OrderXiaoqiangPaymentCreatedAt                time.Time `json:"order_xiaoqiang_payment_created_at" gorm:"type:datetime"`
	OrderXiaoqiangPaymentUpdatedAt                time.Time `json:"order_xiaoqiang_payment_updated_at" gorm:"type:datetime"`
	Money                                         int       `json:"money" gorm:"type:int(11)"`
}

func (c *XiaoqiangPaymentViewStruct) TableName() string {
	return "xiaoqiang_payment_view"
}
